Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Two other ways....

The first way I have found was to create a panel with the hidden fields in it and hide with css. But that has the isue, that a user could switch off css in his browser and the hidden fileds are shown again.

The easiest and best way is to set the fields in "querySaveDocument:".:

<xp:this.querySaveDocument>
<xp:actionGroup>
<xp:modifyField name="TxtBeschreibung">
<xp:this.value>
<![CDATA[#{javascript:@Text(document1.getValue("rtxBeschreibung"));}]]>
</xp:this.value>
</xp:modifyField>
<xp:modifyField name="datValidUntil"
value="#{javascript:@Adjust(@Now(),0,3,0,0,0,0)}">
</xp:modifyField>
<xp:modifyField name="SendTo"
value="#{javascript:@UserName()}">
</xp:modifyField>
<xp:modifyField name="Autor"
value="#{javascript:@UserName()}">
</xp:modifyField>
<xp:modifyField name="rbtYesNo" value="nein">
</xp:modifyField>
</xp:actionGroup>
</xp:this.querySaveDocument>

In that way no field must be made in the XPage and you can fill all hidden fields in the form. It also works with fields which are set to "computed" in the notesform.


Feedback response number WMAS7PLJDP created by ~Wei Mintumiplopoopsi on 02/25/2009

XPages and hidden computed fields (~Samuel Nonfoop... 24.Feb.09)
. . Two other ways.... (~Emile Fezgeroz... 25.Feb.09)
. . . . One problem with that... (~Samuel Nonfoop... 25.Feb.09)
. . . . . . Can you gieve us the code, please ?... (~Emile Fezgeroz... 26.Feb.09)
. . . . . . . . Does this help? (~Samuel Nonfoop... 26.Feb.09)
. . . . . . . . . . Yes, thank you :-) (~Emile Fezgeroz... 27.Feb.09)
. . This is a good question, and an enh... (~Joan Zektoomar... 25.Feb.09)
. . . . ComputeWithForm? (~Samuel Nonfoop... 25.Feb.09)
. . . . hidden input field in 8.5.1 (~Hal Churepuloo... 16.Oct.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS